package com.vids.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @since 2019-06-04
 */
@TableName("t_system_status")
@KeySequence(value = "SEQ_MYSQL_STRING_KEY", dbType = DbType.MYSQL)
public class SystemStatus extends Model<SystemStatus> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @JsonIgnore
    @TableId(value = "id", type = IdType.INPUT)
    private String id;
    /**
     * 服务器标示符
     */
    @TableField("viid_server_id")
    private String viidServerId;

    /**
     * 是否在线
     */
    @TableField("is_online")
    private String isOnline;

    /**
     * 当前时间
     */
    @TableField("`current_time`")
    private Date currentTime;

    public String getId() {
	return id;
    }

    public void setId(String id) {
	this.id = id;
    }

    public String getViidServerId() {
	return viidServerId;
    }

    public void setViidServerId(String viidServerId) {
	this.viidServerId = viidServerId;
    }

    public String getIsOnline() {
	return isOnline;
    }

    public void setIsOnline(String isOnline) {
	this.isOnline = isOnline;
    }

    public Date getCurrentTime() {
	return currentTime;
    }

    public void setCurrentTime(Date currentTime) {
	this.currentTime = currentTime;
    }

    @Override
    public Serializable pkVal() {
	return this.id;
    }

    @Override
    public String toString() {
	return "TSystemStatus{" + ", id=" + id + ", viidServerId=" + viidServerId + ", isOnline=" + isOnline
		+ ", currentTime=" + currentTime + "}";
    }
}
